package com.lms.thread.demo2;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-01-19 09:55
 * @Description: ${Description}
 */
public class TaskB extends Thread {
    private SynchronizedTest synchronizedTest;

    public TaskB(SynchronizedTest synchronizedTest) {
        this.synchronizedTest = synchronizedTest;
    }

    @Override
    public void run() {
//        synchronizedTest.nosync();
        synchronizedTest.sync2();
    }
}
